
<template>
  <div class="dx-muen-container">
    <MenuLists />
    <router-view />
    <!-- <DataDisplay @upDataDetailId="upDataDetailId" /> -->
    <DataDetail
      v-if="detailID"
      :detailID="detailID"
    />
  </div>
</template>

<script>
import MenuLists from "./MenuLists.vue";
import DataDisplay from "./DataDisplay.vue";
import DataDetail from "./DataDetail.vue";
export default {
  name: "DxAppManagement",

  provide: function () {
    return {
      upDataDetailId: this.upDataDetailId,
    };
  },
  components: {
    MenuLists,
    DataDisplay,
    DataDetail,
  },

  data() {
    return {
      detailID: null,
    };
  },
  mounted() {
    // 判断是否存入
    const proNum = this.$store.getters.proNum || null;
    // this.detailID = this.$route.params.id || null;
  },
  methods: {
    upDataDetailId(id) {
      this.detailID = id;
    },
  },
};
</script>


